package com.jk.smartelderlycare.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jk.smartelderlycare.dto.SysHomestay;
import org.apache.ibatis.annotations.Update;

public interface SysHomestayMapper extends BaseMapper<SysHomestay> {
    /**
     * @description: 审核通过
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:55
     */
    @Update("update sys_homestay set status = '审核通过' where homestay_id = #{homestayId}")
    void upPassStatusById(SysHomestay sysHomestay);
    /**
     * @description: 审核未通过
     * @param: [sysHomestay]
     * @return: void
     * @author hhk
     * @date: 2024/11/25 16:56
     */
    @Update("update sys_homestay set status = '审核未通过' where homestay_id = #{homestayId}")
    void FailedStatusById(SysHomestay sysHomestay);
}